home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / cmds.fmt / ci.man < prev    next >
Encoding:
Text File  |  1989-01-06  |  10.0 KB  |  265 lines

  1.  
  2.  
  3.  
  4. CI                        User Commands                        CI
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      ci - check in RCS revisions
  10.  
  11. SSYYNNOOPPSSIISS
  12.      ccii [ options ] file ...
  13.  
  14. DDEESSCCRRIIPPTTIIOONN
  15.      _C_i stores new revisions into RCS files.  Each file name end-
  16.      ing in `,v' is taken to be an RCS file, all others are
  17.      assumed to be working files containing new revisions.  _C_i
  18.      deposits the contents of each working file into the
  19.      corresponding RCS file.
  20.  
  21.      Pairs of RCS files and working files may be specified in 3
  22.      ways (see also the example section of _c_o (1)).
  23.  
  24.      1) Both the RCS file and the working file are given. The RCS
  25.      file name is of the form _p_a_t_h_1/_w_o_r_k_f_i_l_e,v and the working
  26.      file name is of the form _p_a_t_h_2/_w_o_r_k_f_i_l_e, where _p_a_t_h_1/ and
  27.      _p_a_t_h_2/ are (possibly different or empty) paths and _w_o_r_k_f_i_l_e
  28.      is a file name.
  29.  
  30.      2) Only the RCS file is given. Then the working file is
  31.      assumed to be in the current directory and its name is
  32.      derived from the name of the RCS file by removing _p_a_t_h_1/ and
  33.      the suffix `,v'.
  34.  
  35.      3) Only the working file is given. Then the name of the RCS
  36.      file is derived from the name of the working file by remov-
  37.      ing _p_a_t_h_2/ and appending the suffix `,v'.
  38.  
  39.      If the RCS file is omitted or specified without a path, then
  40.      _c_i looks for the RCS file first in the directory ./RCS and
  41.      then in the current directory.
  42.  
  43.      For _c_i to work, the caller's login must be on the access
  44.      list, except if the access list is empty or the caller is
  45.      the superuser or the owner of the file.  To append a new
  46.      revision to an existing branch, the tip revision on that
  47.      branch must be locked by the caller. Otherwise, only a new
  48.      branch can be created. This restriction is not enforced for
  49.      the owner of the file, unless locking is set to _s_t_r_i_c_t (see
  50.      _r_c_s (1)).  A lock held by someone else may be broken with
  51.      the _r_c_s command.
  52.  
  53.      Normally, _c_i checks whether the revision to be deposited is
  54.      different from the preceding one. If it is not different, _c_i
  55.      either aborts the deposit (if --qq is given) or asks whether
  56.      to abort (if --qq is omitted). A deposit can be forced with
  57.      the --ff option.
  58.  
  59.      For each revision deposited, _c_i prompts for a log message.
  60.  
  61.  
  62.  
  63. Purdue University            6/29/83                            1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CI                        User Commands                        CI
  71.  
  72.  
  73.  
  74.      The log message should summarize the change and must be ter-
  75.      minated with a line containing a single `.' or a control-D.
  76.      If several files are checked in, _c_i asks whether to reuse
  77.      the previous log message.  If the std. input is not a termi-
  78.      nal, _c_i suppresses the prompt and uses the same log message
  79.      for all files.  See also --mm.
  80.  
  81.      The number of the deposited revision can be given by any of
  82.      the options --rr, --ff, --kk, --ll, --uu, or --qq (see --rr).
  83.  
  84.      If the RCS file does not exist, _c_i creates it and deposits
  85.      the contents of the working file as the initial revision
  86.      (default number: 1.1).  The access list is initialized to
  87.      empty.  Instead of the log message, _c_i requests descriptive
  88.      text (see --tt below).
  89.  
  90.      --rr[_r_e_v]   assigns the revision number _r_e_v to the checked-in
  91.                revision, releases the corresponding lock, and
  92.                deletes the working file. This is also the
  93.                default.
  94.  
  95.                If _r_e_v is omitted, _c_i derives the new revision
  96.                number from the caller's last lock. If the caller
  97.                has locked the tip revision of a branch, the new
  98.                revision is appended to that branch. The new revi-
  99.                sion number is obtained by incrementing the tip
  100.                revision number.  If the caller locked a non-tip
  101.                revision, a new branch is started at that revision
  102.                by incrementing the highest branch number at that
  103.                revision.  The default initial branch and level
  104.                numbers are 1.  If the caller holds no lock, but
  105.                he is the owner of the file and locking is not set
  106.                to _s_t_r_i_c_t, then the revision is appended to the
  107.                trunk.
  108.  
  109.                If _r_e_v indicates a revision number, it must be
  110.                higher than the latest one on the branch to which
  111.                _r_e_v belongs, or must start a new branch.
  112.  
  113.                If _r_e_v indicates a branch instead of a revision,
  114.                the new revision is appended to that branch. The
  115.                level number is obtained by incrementing the tip
  116.                revision number of that branch.  If _r_e_v indicates
  117.                a non-existing branch, that branch is created with
  118.                the initial revision numbered _r_e_v._1.
  119.  
  120.                Exception: On the trunk, revisions can be appended
  121.                to the end, but not inserted.
  122.  
  123.      --ff[_r_e_v]   forces a deposit; the new revision is deposited
  124.                even it is not different from the preceding one.
  125.  
  126.  
  127.  
  128.  
  129. Purdue University            6/29/83                            2
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. CI                        User Commands                        CI
  137.  
  138.  
  139.  
  140.      --kk[_r_e_v]   searches the working file for keyword values to
  141.                determine its revision number, creation date,
  142.                author, and state (see _c_o (1)), and assigns these
  143.                values to the deposited revision, rather than com-
  144.                puting them locally.  A revision number given by a
  145.                command option overrides the number in the working
  146.                file.  This option is useful for software distri-
  147.                bution. A revision that is sent to several sites
  148.                should be checked in with the --kk option at these
  149.                sites to preserve its original number, date,
  150.                author, and state.
  151.  
  152.      --ll[_r_e_v]   works like --rr, except it performs an additional _c_o
  153.                -_l for the deposited revision. Thus, the deposited
  154.                revision is immediately checked out again and
  155.                locked.  This is useful for saving a revision
  156.                although one wants to continue editing it after
  157.                the checkin.
  158.  
  159.      --uu[_r_e_v]   works like --ll, except that the deposited revision
  160.                is not locked.  This is useful if one wants to
  161.                process (e.g., compile) the revision immediately
  162.                after checkin.
  163.  
  164.      --qq[_r_e_v]   quiet mode; diagnostic output is not printed.  A
  165.                revision that is not different from the preceding
  166.                one is not deposited, unless --ff is given.
  167.  
  168.      --mm_m_s_g     uses the string _m_s_g as the log message for all
  169.                revisions checked in.
  170.  
  171.      --nn_n_a_m_e    assigns the symbolic name _n_a_m_e to the number of
  172.                the checked-in revision.  _C_i prints an error mes-
  173.                sage if _n_a_m_e is already assigned to another
  174.                number.
  175.  
  176.      --NN_n_a_m_e    same as --nn, except that it overrides a previous
  177.                assignment of _n_a_m_e.
  178.  
  179.      --ss_s_t_a_t_e   sets the state of the checked-in revision to the
  180.                identifier _s_t_a_t_e.  The default is _E_x_p.
  181.  
  182.      --tt[_t_x_t_f_i_l_e]
  183.                writes descriptive text into the RCS file (deletes
  184.                the existing text).  If _t_x_t_f_i_l_e is omitted, _c_i
  185.                prompts the user for text supplied from the std.
  186.                input, terminated with a line containing a single
  187.                `.' or control-D.  Otherwise, the descriptive text
  188.                is copied from the file _t_x_t_f_i_l_e.  During initiali-
  189.                zation, descriptive text is requested even if --tt
  190.                is not given.  The prompt is suppressed if std.
  191.                input is not a terminal.
  192.  
  193.  
  194.  
  195. Purdue University            6/29/83                            3
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. CI                        User Commands                        CI
  203.  
  204.  
  205.  
  206. DDIIAAGGNNOOSSTTIICCSS
  207.      For each revision, _c_i prints the RCS file, the working file,
  208.      and the number of both the deposited and the preceding revi-
  209.      sion.  The exit status always refers to the last file
  210.      checked in, and is 0 if the operation was successful, 1 oth-
  211.      erwise.
  212.  
  213. FFIILLEE MMOODDEESS
  214.      An RCS file created by _c_i inherits the read and execute per-
  215.      missions from the working file. If the RCS file exists
  216.      already, _c_i preserves its read and execute permissions.  _C_i
  217.      always turns off all write permissions of RCS files.
  218.  
  219. FFIILLEESS
  220.      The caller of the command must have read/write permission
  221.      for the directories containing the RCS file and the working
  222.      file, and read permission for the RCS file itself.  A number
  223.      of temporary files are created.  A semaphore file is created
  224.      in the directory containing the RCS file.  _C_i always creates
  225.      a new RCS file and unlinks the old one.  This strategy makes
  226.      links to RCS files useless.
  227.  
  228. IIDDEENNTTIIFFIICCAATTIIOONN
  229.      Author: Walter F. Tichy, Purdue University, West Lafayette,
  230.      IN, 47907.
  231.      Revision Number: 3.1 ; Release Date: 83/04/04 .
  232.      Copyright (C) 1982 by Walter F. Tichy.
  233.  
  234. SSEEEE AALLSSOO
  235.      co (1), ident(1), rcs (1), rcsdiff (1), rcsintro (1),
  236.      rcsmerge (1), rlog (1), rcsfile (5), sccstorcs (8).
  237.      Walter F. Tichy, "Design, Implementation, and Evaluation of
  238.      a Revision Control System," in _P_r_o_c_e_e_d_i_n_g_s _o_f _t_h_e _6_t_h _I_n_t_e_r_-
  239.      _n_a_t_i_o_n_a_l _C_o_n_f_e_r_e_n_c_e _o_n _S_o_f_t_w_a_r_e _E_n_g_i_n_e_e_r_i_n_g, IEEE, Tokyo,
  240.      Sept. 1982.
  241.  
  242. BBUUGGSS
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258. Purdue University            6/29/83                            4
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.